package com.example.kingdee.sqlTool.common;

import java.util.HashMap;

public class OrderMap extends SwMap {

    public void ascBy(String ascField){
        put(ascField,"asc");
    }

    public void descBy(String descField){
        put(descField,"desc");
    }

    public static OrderMap parseOfHashMap(HashMap<String,Object> map){
        OrderMap orderMap = new OrderMap();
        map.forEach((k,v)->{
            orderMap.put(k,v);
        });
        return orderMap;
    }
}
